/*
* @Author: sc
* @Date:   2019-01-13 14:42:48
* @Last Modified by:   sc
* @Last Modified time: 2019-01-20 13:03:08
*/
/*
* @Author: sc
* @Date:   2019-01-11 21:19:14
* @Last Modified by:   sc
* @Last Modified time: 2019-01-12 21:04:10
*/

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter as Router, Route, Switch, Link} from 'react-router-dom';

import Top from 'page/top/index.jsx';
import Todo from 'page/todo/index.jsx';

import store from 'store/todo-list/index.jsx';
import { observer, Provider } from 'mobx-react';

import Home from 'page/home/index.jsx'

// 设置中文语言
import { LocaleProvider } from 'antd';
import zh_CN from 'antd/lib/locale-provider/zh_CN';
import moment from 'moment';
import 'moment/locale/zh-cn';

moment.locale('zh-cn');
import './app.css'

@observer
class App extends React.Component {
  constructor(props) {
    super(props);
  }
  render() {
    return (
        <Home/>
    );
  }
}

ReactDOM.render(
	<LocaleProvider locale={zh_CN}>
    <Provider store={store}>
      <App/>
    </Provider>
  </LocaleProvider>,
	document.getElementById('container')
);